home *** CD-ROM | disk | FTP | other *** search
/ PC Play 128 / pc play 128.iso / Demo / xmr / xmr.exe / {app} / Shaders / ps / ps2_0_hdr_downscale2x2.psh < prev    next >
Encoding:
Text File  |  2006-12-19  |  867 b   |  42 lines

  1. //
  2. // Generated by Microsoft (R) D3DX9 Shader Compiler 9.04.91.0000
  3. //
  4. //   fxc /T ps_2_0 /DCGC=0 /Fc
  5. //    ..\..\WorkDir\Shaders\ps\ps2_0_hdr_downscale2x2.psh
  6. //    ps2_0_hdr_downscale2x2.cg
  7. //
  8. //
  9. // Parameters:
  10. //
  11. //   sampler2D $Tex0;
  12. //   float4 $TexCoordOffset[4];
  13. //
  14. //
  15. // Registers:
  16. //
  17. //   Name            Reg   Size
  18. //   --------------- ----- ----
  19. //   $TexCoordOffset c0       4
  20. //   $Tex0           s0       1
  21. //
  22.  
  23.     ps_2_0
  24.     def c4, 0.25, 0, 0, 0
  25.     dcl t0.xy
  26.     dcl_2d s0
  27.     add r0.xy, t0, c0
  28.     add r3.xy, t0, c1
  29.     add r2.xy, t0, c2
  30.     add r1.xy, t0, c3
  31.     texld r0, r0, s0
  32.     texld r3, r3, s0
  33.     texld r2, r2, s0
  34.     texld r1, r1, s0
  35.     add r0, r0, r3
  36.     add r0, r2, r0
  37.     add r0, r1, r0
  38.     mul r0, r0, c4.x
  39.     mov oC0, r0
  40.  
  41. // approximately 13 instruction slots used (4 texture, 9 arithmetic)
  42.